package com.hst.web.sys.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hst.core.annotation.Comment;

/**
 * 
 * @author Adrian
 *
 */
@Entity
@Table(name="sys_role_privilege")
@Comment("角色权限关系表")
public class TRolePrivilege implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Comment("角色id")
	@Id
	@Column(length=10, name="id_role")
	private String roleId;
	
	@Comment("privilegeid")
	@Id
	@Column(length=10, name="id_privilege")
	private String privilegeId;

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	/**
	 * @return the privilegeId
	 */
	public String getPrivilegeId() {
		return privilegeId;
	}

	/**
	 * @param privilegeId the privilegeId to set
	 */
	public void setPrivilegeId(String privilegeId) {
		this.privilegeId = privilegeId;
	}

}
